﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BulletinBoard.ascx.cs" Inherits="badminton.Controls.BulletinBoard" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"  TagPrefix="ajaxToolkit" %>
     <script type="text/javascript">
        function PanelClick(sender, e) {

        }

        function ActiveTabChanged(sender, e) {

        }

        var HighlightAnimations = {};
        function Highlight(el) {
            if (HighlightAnimations[el.uniqueID] == null) {
                HighlightAnimations[el.uniqueID] = Sys.Extended.UI.Animation.createAnimation({
                    AnimationName: "color",
                    duration: 0.5,
                    property: "style",
                    propertyKey: "backgroundColor",
                    startValue: "#FFFF90",
                    endValue: "#FFFFFF"
                }, el);
            }
            HighlightAnimations[el.uniqueID].stop();
            HighlightAnimations[el.uniqueID].play();
        }

    </script>
        <ajaxToolkit:TabContainer runat="server" ID="Tabs" Height="302" OnClientActiveTabChanged="ActiveTabChanged" ActiveTabIndex="0" Width="396px">
            <ajaxToolkit:TabPanel runat="server" ID="Panel1" HeaderText="培训信息">
                <ContentTemplate>
                    <asp:UpdatePanel ID="updatePanel1" runat="server">
                        <ContentTemplate>
                            <table width="100%">
                                <tr>
                                    <td>
                                        <asp:Repeater ID="Repeater1" runat="server">
                                            <HeaderTemplate>
                                              <table width="100%">
                                            </HeaderTemplate>

                                            <ItemTemplate>
                                              <tr id="Tr2" runat="server">
                                                <td>
                                                    <asp:HyperLink ID="HyperLink1"  runat="server" Text='<%# GetText(Eval("id")) %>' NavigateUrl='<%# GetURL(Eval("id")) %>' />
                                                </td>
                                                <td>
                                                    <a href='./pages/halldetail.aspx?hallid=<%# Eval("hallId") %>'><%# GetHallName(Eval("id")) %></a>
                                                </td>
                                                <td align=right>
                                                    <%# GetStartTime(Eval("id"))%>
                                                </td>
                                              </tr>
                                            </ItemTemplate>

                                            <FooterTemplate>
                                            </table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                           </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
                      
        </ajaxToolkit:TabContainer>